import Vue from 'vue'
import router from './router'
import store from './store'
import App from './App.vue'
import * as MyFun from '@/js/Common.js'
import { NavBar, Tabbar, TabbarItem, Search, Button, Grid, GridItem, Swipe, SwipeItem, AddressEdit,  
  Lazyload, Card, Divider, Icon, Field, Toast, CellGroup, Skeleton, RadioGroup, Radio, AddressList,
  ActionSheet, Tab, Tabs, SubmitBar, Uploader, Cell, Image    } from 'vant';

Vue.use(Card);
Vue.use(Field);
Vue.use(Divider);
Vue.use(ActionSheet);
Vue.use(Skeleton);
Vue.use(SubmitBar);
Vue.use(Uploader);
Vue.use(AddressEdit);
Vue.use(AddressList)
Vue.use(RadioGroup);
Vue.use(Radio);
Vue.use(Field);
Vue.use(Lazyload);
Vue.use(CellGroup);
Vue.use(Toast);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Search);  
Vue.use(Tabbar);
Vue.use(Button);
Vue.use(TabbarItem);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Icon);
Vue.use(NavBar);
Vue.use(Cell)
Vue.use(CellGroup)
Vue.use(Image)

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  beforeCreate(){
    Vue.prototype.$myFun = MyFun
    Vue.prototype.$bus = this

  },
  router,
  store
}).$mount('#app')
